import { ILoadMapTypeAll } from '@/common';
import { getLevelZeroJson, getLoadMapList, getSelectDataCommon, getSelectDataMapList, getTenantID } from '@/utils';
import { AssetacquisitionManageAPI } from '../common/type';
/**
 * @param {Object} loadMdicMapList 数据字典
 * @param {Object} areaListData 地区字典
 * */
const ManageSearchColumns = (assetType: any[]): AssetacquisitionManageAPI.IHeaderSearchType => {
  const searchColumns: AssetacquisitionManageAPI.ISearchList = [
    {
      name: 'inventoryTitle',
      placeholder: '事项名称',
      label: '事项名称',
      componentType: 'Input',
      allowClear: true,
      md: 5,
      sm: 24,
      whetherSenior: false,
      treeID: 'id',
      treeName: 'name',
      searchParams: {
        fieldType: 'String',
        fieldParam: 0,
        fieldUse: 0,
        searchType: 0,
        seq: 0,
      },
    },
    {
      name: 'inventoryInfo',
      placeholder: '盘点说明',
      label: '盘点说明',
      componentType: 'Input',
      allowClear: true,
      md: 5,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'state',
      placeholder: '盘点状态',
      label: '盘点状态',
      componentType: 'Select',
      allowClear: true,
      md: 5,
      sm: 24,
      whetherSenior: false,
      dataSource: assetType,
    },
    {
      name: 'createTime',
      placeholder: '申请',
      label: '申请',
      componentType: 'RangePicker',
      allowClear: true,
      md: 9,
      sm: 24,
      whetherSenior: false,
      searchParams: {
        fieldType: 'Date',
        fieldParam: 0,
        fieldUse: 0,
        searchType: 0,
        seq: 0,
      },
    },
    /**===============================高级搜素================================*/
  ];

  return searchColumns;
};

export { ManageSearchColumns };
